public class StringTest {
    public static void main(String[] args) {

        String[] j = new String[2];

        j[0]="java";
        j[1]="world";

        // 使用增强for循环遍历并打印数组
        for (int i = 0; i < j.length; i++) {
            System.out.println(j[i]);
        }
    }
}
